package com.elephant.leil.generator.utils;

public class TypeUtils {


    /**
     * oracle类型转换java类型字符串
     * @param oracleType
     * @return
     */
    public static String oracleTypeToJavaType(String oracleType) {
        switch (oracleType) {
            case "NUMBER":
                return "Integer";
            case "DATE":
            case "TIMESTAMP":
                return "Date";
            case "VARCHAR":
            case "VARCHAR2":
            default:
                return "String";

        }
    }

}
